Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Conversation

@nablaone
Copy link
Member

@nablaone nablaone commented Jun 10, 2025

splitTimeRangeExt optimization may break some queries. Let's go ahead and disable it and proceed with further investigation.

@nablaone nablaone marked this pull request as ready for review June 10, 2025 12:37
@nablaone nablaone requested a review from a team as a code owner June 10, 2025 12:37
@nablaone
Copy link
Member Author

/run-it

@nablaone nablaone added this pull request to the merge queue Jun 10, 2025
Merged via the queue into main with commit eab9572 Jun 10, 2025
7 of 8 checks passed
@nablaone nablaone deleted the disable-broken-optimization branch June 10, 2025 12:44
avelanarius added a commit to avelanarius/quesma that referenced this pull request Jun 10, 2025
Recently, there was a regression caused by a bug in splitTimeRangeExt
optimization (see QuesmaOrg#1454), which splits queries with long time ranges.
Our unit/integration tests failed to catch the issue. The reproducer
for the issue is to run a _search query: sorted by time, over some
time range and with a filter.

This PR adds a new integration test. This test runs the reproducing
query (_search query: sorted by time, over some time range and with
a filter), as well as different variations of the query: short/long
time range, with/without filter, inclusive/exclusive ends of time range.
This should cover the splitTimeRangeExt optimization more thoroughly.

There are two types of tests:
- testTimerangesHandwritten: handwritten different queries
- testTimerangesRandom: randomly generated ranges
avelanarius added a commit to avelanarius/quesma that referenced this pull request Jun 10, 2025
Recently, there was a regression caused by a bug in splitTimeRangeExt
optimization (see QuesmaOrg#1454), which splits queries with long time ranges.
Our unit/integration tests failed to catch the issue. The reproducer
for the issue is to run a _search query: sorted by time, over some
time range and with a filter.

This PR adds a new integration test. This test runs the reproducing
query (_search query: sorted by time, over some time range and with
a filter), as well as different variations of the query: short/long
time range, with/without filter, inclusive/exclusive ends of time range.
This should cover the splitTimeRangeExt optimization more thoroughly.

There are two types of tests:
- testTimerangesHandwritten: handwritten different queries
- testTimerangesRandom: randomly generated ranges
nablaone pushed a commit that referenced this pull request Jun 12, 2025
Recently, there was a regression caused by a bug in `splitTimeRangeExt`
optimization (see #1454), which splits queries with long time ranges.
Our unit/integration tests failed to catch the issue. The reproducer for
the issue is to run a `_search` query: sorted by time, over some time
range and with a filter.

This PR adds a new integration test. This test runs the reproducing
query (`_search` query: sorted by time, over some time range and with a
filter), as well as different variations of the query: short/long time
range, with/without filter, inclusive/exclusive ends of time range. This
should cover the `splitTimeRangeExt` optimization more thoroughly.

There are two types of tests:
- `testTimerangesHandwritten`: handwritten different queries
- `testTimerangesRandom`: randomly generated ranges
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants